<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type"  content="text/html; charset=utf-8">
    <title>ajax使用</title>
    
</head>

<body>
	<script src="../../../static/admin/js/jquery.js"type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
			$(document).ready(function(){
				$.ajax({
					type:"POST",
					url:"/web/login",
					datatye:"jsonp",
					data:{username:"20103498",password:"lims"},
					success:function(data){
						console.log("请求成功："+data);
						alert(data)
					},
					error:function(err){
						console.log(err.status)
					}
				})
			})
    </script>
</body>
</html>